import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App';
import store  from './store/store';
const root = ReactDOM.createRoot(document.getElementById('root'));
root.render( 
  <App />
);

//一定要在这里重新渲染 尹伟redux是第三方插件，react不会重新渲染页面

store.subscribe(()=>{
  root.render( 
    <App />
  )
})


